/**
 * 功能描述
 */

define(function (require, exports, module) {
	var Form = require("form");
	var Dialog = require("dialog");
	var status = "Cancel";
    var instance = {
        initComponent: function (params,widget) {
        	var form = new Form({
        		parentNode: ".J-adjustForm",
        		model: {
        			id: "adjsutForm",
        			layout: "3_1",
        			defaultButton : false,
        			items: [{
        				name: "destination",
						label: "目的地",
						readonly: true
        			},{
        				name: "checkInDate",
						label: "开始日期",
						type: "date",
						mode:"YYYY-MM-DD",						
						defaultValue:moment().format("YYYY-MM-DD"),
        			},{
        				name: "checkOutDate",
						label: "结束日期",
						type: "date",
						mode:"YYYY-MM-DD",
        			},{
        				name:"groupReserve",
        				readonly: true,
        				label:"组团单位"
        			},{
        				name:"signUpNum",
        				readonly: true,
        				label:"已报名人数"
        			},{
        				name:"pkGroup",
        				type:"hidden"
        			},{
        				name:"version",
        				type:"hidden"
        			},{
        				name:"dataSource",
        				type:"hidden"
        			},{
        				name:"status",
        				type:"hidden",
        				defaultValue:"Cancel",
        			}]
        		}
        	});
        	widget.set("adjsutForm",form);
        }
    };
    module.exports = instance;
});
